using Geek.Server.Core.Actors;
using Geek.Server.Core.Net.Http;

namespace Server.Logic.WebServer
{
    [HttpMsgMapping(WebRoleUpdateNotify.RouteKey)]
    public class WebRoleUpdateNotifyHandler : BaseHttpHandler<WebRoleUpdateNotify>
    {
        protected override async Task<HttpResponse> Execute(string ip, WebRoleUpdateNotify req)
        {
            var compAgent = await ActorMgr.GetCompAgent<WebServerCompAgent>();
            return await compAgent.ExecuteRoleUpdateNotify(req);
        }
    }
}